package com.huatech.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huatech.domain.User;
import com.huatech.mapper.UserMapper;
import com.huatech.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper dao;
	
	@Transactional
	public void insert(User user) {
		dao.insert(user);
	}

	public User get(Long id) {
		return dao.get(id);
	}
	
	public List<User> findList(User model) {
		return dao.findList(model);
	}
	
}
